package com.handinglian.ai.system.mapper;

import com.handinglian.ai.system.dto.MenuPermissionDto;
import com.handinglian.ai.system.entity.Role;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertOrUpdate(Role record);

    int insertOrUpdateSelective(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    int updateBatch(List<Role> list);

    int batchInsert(@Param("list") List<Role> list);

    List<Role> find();

    Role findOneByUserId(@Param("userId")Integer userId);

    List<MenuPermissionDto> listMenuPermission(@Param("id")Integer id);
}